<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改订单明细')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-orderLine-edit" th:object="${busOrderLine}">
            <input name="orderLineId" th:field="*{orderLineId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">订单 id：</label>
                <div class="col-sm-8">
                    <input name="orderId" th:field="*{orderId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数量：</label>
                <div class="col-sm-8">
                    <input name="qty" th:field="*{qty}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">零售单价：</label>
                <div class="col-sm-8">
                    <input name="retailPrice" th:field="*{retailPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实售单价：</label>
                <div class="col-sm-8">
                    <input name="currentPrice" th:field="*{currentPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">零售金额：</label>
                <div class="col-sm-8">
                    <input name="retailAmount" th:field="*{retailAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实售金额：</label>
                <div class="col-sm-8">
                    <input name="currentAmount" th:field="*{currentAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否退货：</label>
                <div class="col-sm-8">
                    <input name="isReturn" th:field="*{isReturn}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "business/orderLine";
        $("#form-orderLine-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-orderLine-edit').serialize());
            }
        }
    </script>
</body>
</html>